<?php

/**
 * alltosun.com 对外提供接口配置文件 auth_config.php
 * ============================================================================
 * 版权所有 (C) 2009-2014 北京互动阳光科技有限公司，并保留所有权利。
 * 网站地址:   http://www.alltosun.com
 * ----------------------------------------------------------------------------
 * 许可声明：这是一个开源程序，未经许可不得将本软件的整体或任何部分用于商业用途及再发布。
 * ============================================================================
 * $Author: 张元昊 (zhangyh@alltosun.com) $
 * $Date: 2014-11-17 上午11:27:46 $
 * $Id$
*/

class auth_config
{
    //定义允许哪些模块可以访问
    public static $auth_m = array(
        "user"   => '会员接口类'
    );

    public static $auth_type = array(
        "1"   =>  "web",
        "2"   =>  "app"
    );

    //眼镜接口
    public static $auth_api  = array(
        "100000001"=>array("skey"=>"sfqdg323124fsh6332vdfsfsdfsdf","type"=>1,"authtime"=>"0","allow_url"=>array('newbandeng.com','www.newbandeng.com')),
        "100000002"=>array("skey"=>"xxddseeewwweeeeeeeeeeffffffff","type"=>1,"authtime"=>"0","allow_url"=>array('newbandeng.com','www.newbandeng.com')),
    );

    public static $auth_return_msg = array(
        'succ'         => 1000, //成功
        'check_err'    => 1001,//验证失败
        'parm_err'     => 1002, //参数错误
        'mod_err'      => 1004,//模块不存在
        'mail_ext'     => 1005,//邮箱已经被注册
        'mobile_ext'   => 1006,//手机已经被注册
        'usr_err'      => 1007,//用户名格式错误
        'pass_err'     => 1008,//密码格式不正确
        'usr_ext'      => 1009,//用户已经存在
        'mobile_err'   => 1010,//手机格式错误
        'sms_err'      => 1011,//发送短信失败
        'smscode_err'  => 1012,//验证码错误
        'smscode_exp'  => 1013,//验证码失效
        'imgcode_exp'  => 1014,//图片验证码错误
        'usrpass_err'  => 1015,//用户名密码错误
        'token_err'    => 1016,//token验证失败
        'unknow_err'   => 1017,//未知错误
        'pic_err'      => 1018,//图片超出范围
        'oldpass_err'  => 1019,//老密码错误
        'realname_err' => 1020,//真实姓名不能为空
        'birth_err'    => 1021,//生日填写错误
        'out_of_use_err' => 1022,//接口已被废弃
        'nick_err'     => 1023  //昵称格式不正确

    );

    //蒙奇笔接口
    public  static $auth_mengqibi_api = array(
            'client_id' => '04472882696550754767552759438595',
            'client_secret' => 'FwNcgAPBX6IL3gXCiynghC4Dnk1qiHOY',
            'grant_type' => 'password',
            'authtime' => '0'
        );
}
?>